package DisplayDatas;

import java.util.*;

import DataObjects.*;
import Main.Pair;

public class FullTopicToDisplay extends ListOfArticlesToDisplay {

	private Collection<TopicToDisplay> thisTopic;
	private Collection<TopicToDisplay> relateTopic;

	public FullTopicToDisplay(Collection<Article> articles, String query,long countFound,Collection<TopicToDisplay> thisTopic,Collection<TopicToDisplay> relateTopic,Vector<Pair<String, Integer>> cats) {
		super(articles, query,countFound,cats);
		this.relateTopic=relateTopic;
		this.thisTopic=thisTopic;
	}

//	public Collection<Integer> getAllId() {
//		Vector<Integer> ans=new Vector<Integer>();
//		for(TopicToDisplay topic : thisTopic)
//			ans.add(topic.getId());
//		return ans;
//	}

	public Collection<TopicToDisplay> getThisTopic() {
		return thisTopic;
	}

	public Collection<TopicToDisplay> getRelateTopic() {
		return relateTopic;
	}
	
//	public Collection<String> getAllName() {
//		Vector<String> ans=new Vector<String>();
//		for(TopicToDisplay topic : thisTopic)
//			ans.add(topic.getName());
//		return ans;
//	}

//	public Collection<Long> getAllCountFound() {
//		Vector<Long> ans=new Vector<Long>();
//		for(TopicToDisplay topic : thisTopic)
//			ans.add((long)topic.getCountFound());
//		return ans;
//	}

//	public Vector<TopicToDisplay> getFathers() {//TODO do whis that samthing - samday
//		return thisTopic.getFathers();
//	}
//	
//	public Iterator<TopicToDisplay> getFathersIterator() {
//		return thisTopic.getFathersIterator();
//	}
//	
//	public Vector<TopicToDisplay> getChildren() {
//		return thisTopic.getChildren();
//	}
//	
//	public Iterator<TopicToDisplay> getChildrenIterator() {
//		return thisTopic.getChildrenIterator();
//	}
}
